<extend name="Public:index" />
<block name="main-crumb">
  <li>
    <a href="{:U(\'role/index\')}">角色列表</a>
  </li>
  <li class="active">角色编辑</li>
</block>
<block name="main-content">
  <div class="container-fluid">
    <div class="row">
      <div class="col-12">
        <div class="card">
          <div class="card-body">
            <form action="__APP__/web/Role/edit" method="post" class="definewidth m20">
              <table class="table table-bordered table-hover definewidth m10">
                <tr>
                  <td width="10%" class="tableleft">角色名：</td>
                  <td>
                    <input type="text" name="rolename" id="rolename" onblur="chkrole()" value="{$rolelist[rolename]}" />
                  </td>
                </tr>
                <tr>
                  <td class="tableleft">是否禁用：</td>
                  <td>
                    <if condition="$rolelist['isforbidden'] eq 0">

                      <label class="m_input_r">
                        <input type="radio" class="ace" name="isforbidden" checked="checked" value="0" /> 启用
                        <span class="lbl"></span>
                      </label>
                      <else />
                      <label class="m_input_r">
                        <input type="radio" class="ace" name="isforbidden" value="0" /> 启用
                        <span class="lbl"></span>
                      </label>
                    </if>

                    <if condition="$rolelist['isforbidden'] eq 1">
                      <label class="m_input_r">
                        <input type="radio" class="ace" name="isforbidden" checked="checked" value="1" /> 禁用
                        <span class="lbl"></span>
                      </label>
                      <else />

                      <label class="m_input_r">
                        <input type="radio" class="ace" name="isforbidden" value="1" /> 禁用
                        <span class="lbl"></span>
                      </label>
                    </if>
                  </td>
                </tr>
                </tr>
                <tr>
                  <td class="tableleft">备注：</td>
                  <td>
                    <input type="text" name="notes" id="notes" value="{$rolelist[notes]}" />
                  </td>
                </tr>

                <tr>
                  <td colspan="3">

                    <input type="hidden" name="id" value="{$rolelist[roleid]}">
                    <input type="submit" class="btn btn_primary" id="sub" name="sub" value="修改" />
                    <input type="reset" class="btn btn-success" value="重置" />
                  </td>
                </tr>
              </table>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</block>